package com.zdyt.opc.service;

import com.zdyt.opc.entity.*;
import org.openscada.opc.lib.common.NotConnectedException;

import java.util.List;

public interface OpcConnectService {
    ConnectInfo getConnectionInformation();

    List<OPCServerDetail> connectByBaseInfo(ConnectInfo connectInfo);

    List<Item> connectToOpcByProgId(String progId);

    void disconnectOpcServer();

    ServerListCanConnect canConnectHost();

    OpcServerSate isOpcConnected();

    List<OPCServerDetail> getAllOPCServerProgIds();

    List<ConnectInfo> createOrUpdateConnect(ConnectInfo connectInfo);

    List<ConnectInfo> getConnects();

    List<ConnectInfo> deleteConnectInfo(Integer hostId);

    NowConnect getNowConnectInfo();
}
